<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>消息</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<script src="../statics/js/rem.js"></script>
	<script src="../statics/js/jquery.min.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="../statics/css/base.css"/>
	<link rel="stylesheet" type="text/css" href="../statics/css/page.css"/>
	<link rel="stylesheet" type="text/css" href="../statics/css/all.css"/>
	<link rel="stylesheet" type="text/css" href="../statics/css/mui.min.css"/>
	<link rel="stylesheet" type="text/css" href="../statics/css/loaders.min.css"/>
	<link rel="stylesheet" type="text/css" href="../statics/css/loading.css"/>
	<link rel="stylesheet" type="text/css" href="../statics/slick/slick.css"/>
	<link rel="stylesheet" type="text/css" href="../statics/bootstrap-3.3.7-dist/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="../statics/HG-css/UserNews.css"/>
	<script type="text/javascript">
        $(window).load(function(){
            $(".loading").addClass("loader-chanage")
            $(".loading").fadeOut(300)
        })
	</script>
</head>
<!--loading页开始-->
<div class="loading">
	<div class="loader">
		<div class="loader-inner pacman">
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
		</div>
	</div>
</div>
<!--loading页结束-->
<body>
<div class="headertwo clearfloat" id="header">
	<a href="../user/p-center.html?liindex=3" class="fl box-s"><i class="iconfont icon-arrow-l fl"></i></a>
	<p class="fl">消息</p>
</div>

<div class="about-detail clearfloat box-s" id="main">
	<div class="ctent clearfloat box-s">

		<c:forEach items="${coms}" var="coms">
			<form action="../com/addhfcom.html" method="post">
		<div  class="title" <c:if test="${coms.read!=0}">style="background: ghostwhite;" </c:if> >
			<c:if test="${coms.read==0}"><div style="color: #d9534f;font-size: 10px"><span  class="glyphicon glyphicon-record"></span><span class="label label-danger">未读</span><a class="huifu"><span class="glyphicon glyphicon-hand-right div1" aria-hidden="true"></span>回复ta</a></div></c:if>
			<div class="div1">
					${coms.pl}<span class=" name div1 <c:if test="${coms.read==0}">username</c:if> ">--来自用户<em class="div1">${coms.users.usersName}</em></span>
			</div>
			<a href="../houses/houseDetails/${coms.house.house_id}">
				<input type="hidden" value="${coms.house.house_id}">
                <div class="housenews" >
					<c:set value="${fn:split(img.imgname, ',')}" var="names"/>
					<img src="../statics/upload/${names[0]}" style="width: 100%;height: 100%">
				<div class="housename div1">${coms.house.title}</div>
				</div>
			</a>

			<div class="housepl"><input name="hfplcom" style="width:90%;" type="text" ></div>
			<div class="housebtn"><button class="btn btn-default" type="submit">确认回复</button></div>
			<input name="com_id" type="hidden" value="${coms.com_id}">
		</div>
			</form>
		</c:forEach>

	</div>
</div>
</body>
<script type="text/javascript" src="../statics/js/jquery-1.8.3.min.js" ></script>
<script type="text/javascript" src="../statics/js/jquery.SuperSlide.2.1.js" ></script>
<script type="text/javascript" src="../statics/slick/slick.min.js" ></script>
<script type="text/javascript" src="../statics/js/jquery.leanModal.min.js"></script>
<script type="text/javascript" src="../statics/js/tchuang.js" ></script>
<script type="text/javascript" src="../statics/js/hmt.js" ></script>
<%--<script type="text/javascript" src="../statics/js-HG/UserNews.js"></script>--%>
<script>
    $(function () {
        $(".housepl").hide();
        $(".housebtn").hide();
        $(".huifu").click(function () {
            $(this).parent().parent().children(".housepl").show();
            $(this).parent().parent().children(".housebtn").show();
        })
    })
</script>
</html>
